package lab02.test35;

/**
 * Created by mac on 2017/12/30.
 */
public class Salesman extends Employee {

    double baseSalary;
    int quantity;
    double comision;
    public Salesman(String name,double baseSalary,int quantity,double comision) {
        super(name);
        this.baseSalary=baseSalary;
        this.quantity=quantity;
        this.comision =comision;
    }
    @Override
    public double computeSalary() {
        return baseSalary+quantity*comision;
    }

}
